# # Miahx© 框架消息的 FastDDS C++ API 测试工程构建文件
#
# Version: 0.4.10,
# Last updated: October 15, 2024
#
# ## Contributor(s)
# * YAO Naiming <[naiming@iscas.ac.cn](mailto:naiming@iscas.ac.cn)>
#
# ## Change log
# ### v0.4.10
# - .15: [新增] 初始实现
#
# ---
# Copyright © 2024-2025 MIAHX Contributors, ISCAS, and ASIC. All Rights Reserved.
# Licensed under Apache-2.0.

cmake_minimum_required(VERSION 3.22)


project(TEST_MIAHX_WRAPPER)

find_package(fastcdr REQUIRED)
find_package(fastrtps REQUIRED)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_executable(${PROJECT_NAME}
        main.cpp)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)
target_include_directories(${PROJECT_NAME} PUBLIC
        ../build/include
)
target_link_directories(${PROJECT_NAME} PUBLIC
        ../build/lib
)
target_link_libraries(${PROJECT_NAME}
        PUBLIC
        fastcdr
        fastrtps
        miahx_fastdds_api
)
